<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
    <title>吉象出海 - 发布房源</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #EAA82A;  /* 大象黄 - 品牌主色 */
            --secondary: #2E8B57; /* 森林绿 - 辅助色 */
            --dark: #1a2e3b;     /* 深蓝色 */
            --danger: #D0021B;   /* 警示红 */
            --text: #374151;    /* 主要文字色 */
            --light-bg: #F8F9FA; /* 浅灰背景 */
            --card-shadow: 0 2px 12px rgba(0,0,0,0.06);
            --primary-light: #f1c15d;
            --primary-dark: #d3941d;
            --accent: #e74c3c;
            --light: #f8f6f2;
            --gray: #95a5a6;
            --light-gray: #eef1f5;
            --radius: 12px;
            --transition: all 0.3s ease;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        }
        
        body {
            background-color: #fff;
            color: var(--text);
            max-width: 428px;
            margin: 0 auto;
            padding-bottom: 0;
            position: relative;
            background: linear-gradient(135deg, #fefbf4 0%, #fdf8ed 100%);
        }
        
        /* 顶部品牌区域 - 与home.html一致 */
        .brand-header {
            text-align: center;
            padding: 12px 0;
            background: linear-gradient(to bottom, #ffffff, #F8F9FA);
            position: relative;
            border-radius: 0;
            margin-bottom: 0;
            color: var(--primary);
            border-bottom: none;
        }
        
        .brand-title {
            font-size: 22px;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 4px;
            position: relative;
            display: inline-block;
        }
        
        .brand-subtitle {
            font-size: 12px;
            color: var(--text);
            letter-spacing: 2px;
            opacity: 0.8;
            margin-top: 0;
            padding: 0;
            line-height: normal;
        }
        
        .elephant-decoration {
            position: absolute;
            top: 15px;
            left: 20px;
            opacity: 0.15;
            font-size: 32px;
            transform: rotate(-15deg);
            z-index: 0;
            color: var(--primary);
        }
        
        /* 发布页特有样式 */
        .container {
            max-width: 100%;
            margin: 0 auto;
            min-height: 100vh;
            padding-bottom: 80px;
        }
        
        .top-banner {
            background: linear-gradient(to right, #4a3a20, #7d5d28);
            color: white;
            padding: 25px 20px;
            text-align: center;
            position: relative;
            overflow: hidden;
            margin: 15px;
            border-radius: var(--radius);
        }
        
        .banner-title {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
        
        .banner-title i {
            font-size: 24px;
            color: var(--primary);
        }
        
        .benefits {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin: 15px 0;
            flex-wrap: wrap;
        }
        
        .benefit {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
        }
        
        .benefit i {
            color: var(--primary);
        }
        
        .auth-badge {
            background: rgba(255,255,255,0.15);
            border-radius: 50px;
            padding: 8px 15px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-top: 15px;
            font-size: 13px;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .auth-badge:hover {
            background: rgba(255,255,255,0.25);
        }
        
        .publish-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 15px;
            padding: 0 15px 15px;
        }
        
        .publish-card {
            background: white;
            border-radius: var(--radius);
            box-shadow: var(--card-shadow);
            overflow: hidden;
            transition: var(--transition);
        }
        
        .publish-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.12);
        }
        
        .card-header {
            padding: 15px;
            background: rgba(234, 168, 42, 0.1);
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .card-icon {
            width: 42px;
            height: 42px;
            background: var(--primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 20px;
        }
        
        .card-title {
            font-size: 18px;
            font-weight: 700;
        }
        
        .card-subtitle {
            font-size: 13px;
            color: var(--primary-dark);
            font-weight: 600;
            margin-top: 3px;
        }
        
        .card-content {
            padding: 15px;
        }
        
        .card-features {
            list-style: none;
            margin-bottom: 15px;
        }
        
        .card-feature {
            padding: 8px 0;
            display: flex;
            align-items: flex-start;
            gap: 8px;
            position: relative;
            padding-left: 25px;
            font-size: 14px;
        }
        
        .card-feature:before {
            content: "✓";
            position: absolute;
            left: 0;
            top: 8px;
            width: 18px;
            height: 18px;
            background: rgba(234, 168, 42, 0.2);
            color: var(--primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
        }
        
        .warning {
            background: #fef8ea;
            border-left: 3px solid var(--accent);
            padding: 10px;
            margin: 12px 0;
            border-radius: 0 var(--radius) var(--radius) 0;
            display: flex;
            gap: 8px;
            font-size: 13px;
        }
        
        .warning i {
            color: var(--accent);
            flex-shrink: 0;
        }
        
        .map-preview {
            background: var(--light-gray);
            border-radius: var(--radius);
            padding: 12px;
            margin: 12px 0;
            text-align: center;
            position: relative;
        }
        
        .map-placeholder {
            width: 100%;
            height: 100px;
            background: linear-gradient(to right, #d1e0e0, #e0ebeb);
            border-radius: 8px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: var(--dark);
            font-weight: 600;
        }
        
        .map-placeholder i {
            font-size: 28px;
            margin-bottom: 8px;
            color: #5a8d8d;
        }
        
        .conversion-info {
            display: flex;
            gap: 12px;
            margin: 12px 0;
            font-size: 13px;
            background: var(--light-gray);
            padding: 10px;
            border-radius: var(--radius);
        }
        
        .conversion-item {
            text-align: center;
            flex: 1;
        }
        
        .conversion-value {
            font-weight: 700;
            color: var(--primary);
        }
        
        .action-btn {
            display: block;
            width: 100%;
            padding: 12px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: var(--radius);
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            text-align: center;
            margin-top: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        
        .action-btn:hover {
            background: var(--primary-dark);
        }
        
        .action-btn.priority {
            background: linear-gradient(to right, var(--accent), #f57c00);
        }
        
        .trust-bar {
            display: flex;
            justify-content: space-around;
            gap: 10px;
            padding: 15px;
            background: white;
            margin: 20px 15px 0;
            border-radius: var(--radius);
            box-shadow: var(--card-shadow);
            flex-wrap: wrap;
        }
        
        .trust-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 500;
            font-size: 13px;
        }
        
        .trust-item i {
            color: var(--primary);
            font-size: 18px;
        }
        
        .agent-bar {
            background: linear-gradient(to right, #1a2a6c, #2a4a8c);
            color: white;
            padding: 15px;
            margin: 15px;
            border-radius: var(--radius);
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        .agent-content {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .agent-icon {
            width: 36px;
            height: 36px;
            background: var(--primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
        }
        
        .agent-stats {
            display: flex;
            justify-content: space-around;
            gap: 15px;
            margin-top: 10px;
        }
        
        .stat-item {
            text-align: center;
        }
        
        .stat-value {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 3px;
        }
        
        .stat-label {
            font-size: 12px;
            opacity: 0.9;
        }
        
        .agent-btn {
            background: white;
            color: var(--dark);
            border: none;
            border-radius: 50px;
            padding: 10px 20px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: var(--transition);
            margin-top: 10px;
            width: 100%;
        }
        
        /* 底部导航 - 与home.html一致 */
        .tab-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            display: flex;
            background: white;
            box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
            padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
            z-index: 1000;
            max-width: 428px;
            margin: 0 auto;
            border-radius: 20px 20px 0 0;
        }
        
        .tab-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 8px 5px 10px;
            min-height: 60px;
            border-radius: 16px;
            margin: 0 5px;
            transition: all 0.2s ease;
            position: relative;
            cursor: pointer;
        }
        
        .tab-item::after {
            content: '';
            position: absolute;
            top: -15px;
            bottom: -15px;
            left: 0;
            right: 0;
        }
        
        .tab-icon {
            font-size: 1.4rem;
            margin-bottom: 4px;
            transition: all 0.2s ease;
        }
        
        .tab-label {
            font-size: 12px;
            font-weight: 500;
            transition: all 0.2s ease;
        }
        
        .tab-item.active {
            background: rgba(234, 168, 42, 0.15);
        }
        
        .tab-item.active .tab-icon {
            color: var(--primary);
            transform: scale(1.1);
        }
        
        .tab-item.active .tab-label {
            color: var(--primary);
            font-weight: 600;
        }
        
        .tab-item:not(.active):hover {
            background: rgba(0, 0, 0, 0.03);
        }
        
        .tab-item:not(.active) .tab-icon {
            color: #6c757d;
        }
        
        .tab-item:not(.active) .tab-label {
            color: #495057;
        }
        
        /* 响应式调整 */
        @media (max-width: 375px) {
            .brand-title {
                font-size: 20px;
            }
            
            .brand-subtitle {
                font-size: 11px;
            }
            
            .tab-icon {
                font-size: 1.3rem;
            }
            
            .tab-label {
                font-size: 11px;
            }
            
            .card-title {
                font-size: 17px;
            }
            
            .card-subtitle {
                font-size: 12px;
            }
        }
    </style>
</head>
<body>
    <!-- 顶部品牌区域 - 与home.html一致 -->
    <header class="brand-header">
        <a href="home.html" class="back-button" style="position: absolute; left: 15px; top: 15px; font-size: 20px; color: var(--text);">
            <i class="fas fa-arrow-left"></i>
        </a>
        <div class="brand-title">吉象出海</div>
        <div class="brand-subtitle">泰国专业房地产服务平台</div>
    </header>
    
    <!-- 发布页内容 -->
    <div class="container">
        <!-- 顶部横幅 -->
        <div class="top-banner">
            <div class="banner-title">
                <i class="fas fa-rocket"></i>
                <span>发布房源享三重特权</span>
            </div>
            
            <div class="benefits">
                <div class="benefit">
                    <i class="fas fa-chart-line"></i>
                    <span>曝光量提升300%</span>
                </div>
                <div class="benefit">
                    <i class="fas fa-user-tie"></i>
                    <span>专属中介顾问</span>
                </div>
                <div class="benefit">
                    <i class="fas fa-bolt"></i>
                    <span>急速审核通道</span>
                </div>
            </div>
            
            <div class="auth-badge">
                <i class="fas fa-crown"></i>
                <span>已认证中介：享受高级发布权限</span>
            </div>
        </div>
        
        <!-- 发布类型网格 -->
        <div class="publish-grid">
            <!-- 二手房发布 -->
            <div class="publish-card">
                <div class="card-header">
                    <div class="card-icon">
                        <i class="fas fa-home"></i>
                    </div>
                    <div>
                        <div class="card-title">二手房发布</div>
                        <div class="card-subtitle">快速找到买家 · 佣金上浮15%</div>
                    </div>
                </div>
                <div class="card-content">
                    <ul class="card-features">
                        <li class="card-feature">免费专业房源拍摄</li>
                        <li class="card-feature">全平台同步曝光</li>
                        <li class="card-feature">智能定价建议</li>
                        <li class="card-feature">购房者资质审核</li>
                    </ul>
                    
                    <button class="action-btn" onclick="window.location.href='secondhouse.html'">
                        <i class="fas fa-paper-plane"></i> 立即发布
                    </button>
                </div>
            </div>
            
            <!-- 出租房发布 -->
            <div class="publish-card">
                <div class="card-header">
                    <div class="card-icon">
                        <i class="fas fa-key"></i>
                    </div>
                    <div>
                        <div class="card-title">出租房发布</div>
                        <div class="card-subtitle">吸引优质租客 · 空置期缩短40%</div>
                    </div>
                </div>
                <div class="card-content">
                    <ul class="card-features">
                        <li class="card-feature">租客信用评估</li>
                        <li class="card-feature">电子合同签约</li>
                        <li class="card-feature">租金收益分析</li>
                        <li class="card-feature">自动续租提醒</li>
                    </ul>
                    
                    <button class="action-btn" onclick="window.location.href='houserent.html'">
                        <i class="fas fa-paper-plane"></i> 立即发布
                    </button>
                </div>
            </div>
            
            <!-- 别墅发布 -->
            <div class="publish-card">
                <div class="card-header">
                    <div class="card-icon">
                        <i class="fas fa-building"></i>
                    </div>
                    <div>
                        <div class="card-title">别墅发布</div>
                        <div class="card-subtitle">面向高端客户 · 佣金上浮20%</div>
                    </div>
                </div>
                <div class="card-content">
                    <ul class="card-features">
                        <li class="card-feature">高端平台专属展示</li>
                        <li class="card-feature">3D虚拟看房</li>
                        <li class="card-feature">私人看房预约</li>
                        <li class="card-feature">全球买家匹配</li>
                    </ul>
                    
                    <div class="warning">
                        <i class="fas fa-exclamation-circle"></i>
                        <div>请确保标注泳池/花园面积，提供高质量照片</div>
                    </div>
                    
                    <button class="action-btn priority" onclick="window.location.href='villarent.html'">
                        <i class="fas fa-bolt"></i> 优先审核发布
                    </button>
                </div>
            </div>
            
            <!-- 土地出租发布 -->
            <div class="publish-card">
                <div class="card-header">
                    <div class="card-icon">
                        <i class="fas fa-tractor"></i>
                    </div>
                    <div>
                        <div class="card-title">土地出租发布</div>
                        <div class="card-subtitle">自动生成合规地形图</div>
                    </div>
                </div>
                <div class="card-content">
                    <ul class="card-features">
                        <li class="card-feature">自动生成泰国标准地形图</li>
                        <li class="card-feature">土地用途合规检查</li>
                        <li class="card-feature">租赁合同模板</li>
                        <li class="card-feature">租户资质审核</li>
                    </ul>
                    
                    <div class="map-preview">
                        <div class="map-placeholder">
                            <i class="fas fa-map"></i>
                            <div>泰国标准地形图预览</div>
                        </div>
                        <div class="conversion-info">
                            <div class="conversion-item">
                                <div class="conversion-value">1莱 = 1600㎡</div>
                                <div>单位换算</div>
                            </div>
                            <div class="conversion-item">
                                <div class="conversion-value">可分割出售</div>
                                <div>土地特性</div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="warning">
                        <i class="fas fa-exclamation-circle"></i>
                        <div>距离寺庙&lt;500米需特殊标注（佛教文化要求）</div>
                    </div>
                    
                    <button class="action-btn" onclick="window.location.href='landrent.html'">
                        <i class="fas fa-paper-plane"></i> 立即发布
                    </button>
                </div>
            </div>
            
            <!-- 土地出售发布 -->
            <div class="publish-card">
                <div class="card-header">
                    <div class="card-icon">
                        <i class="fas fa-mountain"></i>
                    </div>
                    <div>
                        <div class="card-title">土地出售发布</div>
                        <div class="card-subtitle">快速达成交易 · 规避法律风险</div>
                    </div>
                </div>
                <div class="card-content">
                    <ul class="card-features">
                        <li class="card-feature">产权法律审核</li>
                        <li class="card-feature">自动生成地形图</li>
                        <li class="card-feature">专业估值报告</li>
                        <li class="card-feature">国际买家对接</li>
                    </ul>
                    
                    <div class="warning">
                        <i class="fas fa-exclamation-circle"></i>
                        <div>请提供完整产权文件，避免交易纠纷</div>
                    </div>
                    
                    <button class="action-btn priority" onclick="window.location.href='landsell.html'">
                        <i class="fas fa-bolt"></i> 优先审核发布
                    </button>
                </div>
            </div>
        </div>
        
        <!-- 中介认证条 -->
        <div class="agent-bar">
            <div class="agent-content">
                <div class="agent-icon">
                    <i class="fas fa-user-tie"></i>
                </div>
                <div>
                    <h3>认证中介解锁批量发布工具</h3>
                    <p>提升效率，增加收益</p>
                </div>
            </div>
            
            <div class="agent-stats">
                <div class="stat-item">
                    <div class="stat-value">8小时/月</div>
                    <div class="stat-label">平均节省时间</div>
                </div>
                <div class="stat-item">
                    <div class="stat-value">฿12,000</div>
                    <div class="stat-label">平均增收</div>
                </div>
            </div>
            
            <button class="agent-btn">
                <i class="fas fa-lock-open"></i> 立即认证
            </button>
        </div>
        
        <!-- 信任条 -->
        <div class="trust-bar">
            <div class="trust-item">
                <i class="fas fa-shield-alt"></i>
                <span>资金全程监管</span>
            </div>
            <div class="trust-item">
                <i class="fas fa-file-contract"></i>
                <span>电子合同存证</span>
            </div>
            <div class="trust-item">
                <i class="fas fa-crown"></i>
                <span>已助362位中介成功成交</span>
            </div>
        </div>
    </div>
    
    <!-- 底部导航 - 与home.html一致 -->
    <div class="tab-bar">
        <div class="tab-item">
            <div class="tab-icon"><i class="fas fa-home"></i></div>
            <div class="tab-label">首页</div>
        </div>
        <div class="tab-item">
            <div class="tab-icon"><i class="fas fa-comment-dots"></i></div>
            <div class="tab-label">消息</div>
        </div>
        <div class="tab-item active">
            <div class="tab-icon"><i class="fas fa-plus-circle"></i></div>
            <div class="tab-label">发布</div>
        </div>
        <div class="tab-item">
            <div class="tab-icon"><i class="fas fa-handshake"></i></div>
            <div class="tab-label">委托</div>
        </div>
        <div class="tab-item">
            <div class="tab-icon"><i class="fas fa-user"></i></div>
            <div class="tab-label">我的</div>
        </div>
    </div>
    
    <script>
        // 底部导航交互
        document.querySelectorAll('.tab-item').forEach(item => {
            item.addEventListener('click', function() {
                const label = this.querySelector('.tab-label').textContent;
                
                // 根据点击的tab跳转到对应页面
                switch(label) {
                    case '首页':
                        window.location.href = 'home.html';
                        break;
                    case '消息':
                        window.location.href = 'message.html';
                        break;
                    case '发布':
                        window.location.href = 'post.html';
                        break;
                    case '委托':
                        window.location.href = 'entrust.html';
                        break;
                    case '我的':
                        window.location.href = 'profile.html';
                        break;
                }
            });
        });
        
        // 设置当前页面的tab为active - 放在最后执行
        document.addEventListener('DOMContentLoaded', function() {
            document.querySelectorAll('.tab-item').forEach(item => {
                item.classList.remove('active');
            });
            document.querySelector('.tab-item:nth-child(3)').classList.add('active');
        });
        
        // 模拟中介认证状态
        const isAgent = false;
        
        // 卡片点击效果
        const publishCards = document.querySelectorAll('.publish-card');
        publishCards.forEach(card => {
            card.addEventListener('click', function(e) {
                if (!e.target.classList.contains('action-btn')) {
                    const title = this.querySelector('.card-title').textContent;
                    alert(`准备发布：${title}`);
                }
            });
        });
        
        // 认证中介显示额外功能
        if (isAgent) {
            document.querySelector('.auth-badge').innerHTML = `
                <i class="fas fa-crown"></i>
                <span>已认证中介：高级发布权限已启用</span>
            `;
            
            // 添加中介专属功能
            const agentTools = document.createElement('div');
            agentTools.className = 'agent-tools';
            agentTools.innerHTML = `
                <div style="display: flex; gap: 15px; margin-top: 20px; padding: 0 20px;">
                    <button class="action-btn" style="background: #9b59b6;">
                        <i class="fas fa-clone"></i> 我的发布模板
                    </button>
                    <button class="action-btn" style="background: #3498db;">
                        <i class="fas fa-chart-bar"></i> 发布效果分析
                    </button>
                </div>
            `;
            document.querySelector('.top-banner').appendChild(agentTools);
        }
        
        // 认证按钮事件
        document.querySelector('.agent-btn').addEventListener('click', function() {
            alert('中介认证流程启动...');
        });
    </script>
</body>
</html>